/**
 * ipassbook 0.6.0
 * Copyright (C)2009 wateray and contributors
 * wateray@gmail.com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

package com.wateray.ipassbook.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wateray
 * @create 2009-5-24
 */
public class Receipt implements Entity , Serializable{
	
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	private	String	receiptId;
	private	String	receiptDay;
	private	double	amount;
	private String currencyId;
	private	String	passbookId;
	private String passbookSubId;
	private	String	ReceiptFlag;
	private	String	subjectId;
	private	String	ReceiptVisibleFlag;
	private	String	goodName;
	private	double	price;
	private	int	    number;
	private	float	tax;
	private	String	shopName;
	private	String	memo;
	private	String	receiptUserId;
	private String regeditUserId;
	private Date regeditDate;
	private String updateUserId;
	private Date updateDate;
	

	public Receipt(){}
	
	/**
	 * @return the receiptId
	 */
	public String getReceiptId() {
		return receiptId;
	}

	/**
	 * @param receiptId the receiptId to set
	 */
	public void setReceiptId(String receiptId) {
		this.receiptId = receiptId;
	}

	/**
	 * @return the receiptDay
	 */
	public String getReceiptDay() {
		return receiptDay;
	}

	/**
	 * @param receiptDay the receiptDay to set
	 */
	public void setReceiptDay(String receiptDay) {
		this.receiptDay = receiptDay;
	}

	/**
	 * @return the amount
	 */
	public double getAmount() {
		return amount;
	}

	/**
	 * @param amount the amount to set
	 */
	public void setAmount(double amount) {
		this.amount = amount;
	}

	/**
	 * @return the currencyId
	 */
	public String getCurrencyId() {
		return currencyId;
	}

	/**
	 * @param currencyId the currencyId to set
	 */
	public void setCurrencyId(String currencyId) {
		this.currencyId = currencyId;
	}

	/**
	 * @return the passbookDetailId
	 */
	public String getPassbookDetailId() {
		return passbookId + passbookSubId;
	}
	
	/**
	 * @return the passbookId
	 */
	public String getPassbookId() {
		return passbookId;
	}

	/**
	 * @param passbookId the passbookId to set
	 */
	public void setPassbookId(String passbookId) {
		this.passbookId = passbookId;
	}

	/**
	 * @return the passbookSubId
	 */
	public String getPassbookSubId() {
		return passbookSubId;
	}

	/**
	 * @param passbookSubId the passbookSubId to set
	 */
	public void setPassbookSubId(String passbookSubId) {
		this.passbookSubId = passbookSubId;
	}

	/**
	 * @return the receiptFlag
	 */
	public String getReceiptFlag() {
		return ReceiptFlag;
	}

	/**
	 * @param receiptFlag the receiptFlag to set
	 */
	public void setReceiptFlag(String receiptFlag) {
		ReceiptFlag = receiptFlag;
	}

	/**
	 * @return the subjectId
	 */
	public String getSubjectId() {
		return subjectId;
	}

	/**
	 * @param subjectId the subjectId to set
	 */
	public void setSubjectId(String subjectId) {
		this.subjectId = subjectId;
	}

	/**
	 * @return the receiptVisibleFlag
	 */
	public String getReceiptVisibleFlag() {
		return ReceiptVisibleFlag;
	}

	/**
	 * @param receiptVisibleFlag the receiptVisibleFlag to set
	 */
	public void setReceiptVisibleFlag(String receiptVisibleFlag) {
		ReceiptVisibleFlag = receiptVisibleFlag;
	}

	/**
	 * @return the goodName
	 */
	public String getGoodName() {
		return goodName;
	}

	/**
	 * @param goodName the goodName to set
	 */
	public void setGoodName(String goodName) {
		this.goodName = goodName;
	}

	/**
	 * @return the price
	 */
	public double getPrice() {
		return price;
	}

	/**
	 * @param price the price to set
	 */
	public void setPrice(double price) {
		this.price = price;
	}

	/**
	 * @return the number
	 */
	public int getNumber() {
		return number;
	}

	/**
	 * @param number the number to set
	 */
	public void setNumber(int number) {
		this.number = number;
	}

	/**
	 * @return the tax
	 */
	public float getTax() {
		return tax;
	}

	/**
	 * @param tax the tax to set
	 */
	public void setTax(float tax) {
		this.tax = tax;
	}

	/**
	 * @return the shopName
	 */
	public String getShopName() {
		return shopName;
	}

	/**
	 * @param shopName the shopName to set
	 */
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	/**
	 * @return the memo
	 */
	public String getMemo() {
		return memo;
	}

	/**
	 * @param memo the memo to set
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}

	/**
	 * @return the receiptUserId
	 */
	public String getReceiptUserId() {
		return receiptUserId;
	}

	/**
	 * @param receiptUserId the receiptUserId to set
	 */
	public void setReceiptUserId(String receiptUserId) {
		this.receiptUserId = receiptUserId;
	}

	/**
	 * @return the regeditUserId
	 */
	public String getRegeditUserId() {
		return regeditUserId;
	}

	/**
	 * @param regeditUserId the regeditUserId to set
	 */
	public void setRegeditUserId(String regeditUserId) {
		this.regeditUserId = regeditUserId;
	}

	/**
	 * @return the regeditDate
	 */
	public Date getRegeditDate() {
		return regeditDate;
	}

	/**
	 * @param regeditDate the regeditDate to set
	 */
	public void setRegeditDate(Date regeditDate) {
		this.regeditDate = regeditDate;
	}

	/**
	 * @return the updateUserId
	 */
	public String getUpdateUserId() {
		return updateUserId;
	}

	/**
	 * @param updateUserId the updateUserId to set
	 */
	public void setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
	}

	/**
	 * @return the updateDate
	 */
	public Date getUpdateDate() {
		return updateDate;
	}

	/**
	 * @param updateDate the updateDate to set
	 */
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	/* (non-Javadoc)
	 * @see com.wateray.ipassbook.domain.Entity#getEntityId()
	 */
	@Override
	public String getEntityId() {
		// TODO Auto-generated method stub
		return receiptId;
	}

	/* (non-Javadoc)
	 * @see com.wateray.ipassbook.domain.Entity#getEntityName()
	 */
	@Override
	public String getEntityName() {
		// TODO Auto-generated method stub
		return receiptDay;
	}

}
